import {http }from '../httpIndex.js'

export default{
 // 获取班级类别 app/Class/getAppClassDept
 getAppClassDept(){
	 return http.get('app/Class/getAppClassDept')
 },
 // 展示班级考勤列表 app/Class/getAppClassDeptAccDvByDeptId?classDeptId
 getAppClassDeptAccDvByDeptId(classDeptId,accessDate,timeSlot){
	 return http.get(`app/Class/getAppClassDeptAccDvByDeptId?classDeptId=${classDeptId}&accessDate=${accessDate}&timeSlot=${timeSlot}`)
 },
 // 展示班级卫生列表 /app/Class/getAppClassDeptHyByDeptId?classDeptId
 getAppClassDeptHyByDeptId(classDeptId,accessDate,timeSlot){
	 return http.get(`app/Class/getAppClassDeptHyByDeptId?classDeptId=${classDeptId}&accessDate=${accessDate}&timeSlot=${timeSlot}`)
 },

 getAppClassHygieneList(hygieneType, checktime){
 	 return http.get(`app/classroom/hygiene/getTodayClassroomHygiene?hygieneType=${hygieneType}&checktime=${checktime}`)
 },

 // 宿舍卫生检查提交
 submitClassHygiene(data) {
 	return http.post(`app/classroom/hygiene/submitHygiene`, data)
 },

 getClassHygieneDetailById(classHygieneId, checkDate) {
	return http.get(`app/classroom/hygiene/getClassHygieneById?classHygieneId=${classHygieneId}&checkDate=${checkDate}`)
 },

 getAppClassByDeptManager() {
    return http.get('app/Class/getAppClassByDeptManager')
 },

 getClassRuleTimeSlots(classId) {
    return http.get('app/Class/getClassRuleTimeSlots/'+classId)
 }
}
